package com.matt.foundation.vo.nursery;

import com.matt.domain.nursery.NurseryScheduleTemp;
import com.matt.domain.nursery.NurseryScheduleTempRecord;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/11/28
 * *******************************
 */
@Data
public class NurseryScheduleTempListVo {

    private NurseryScheduleTemp nurseryScheduleTemp;

    private List<NurseryScheduleTempRecord> tempRecords = new ArrayList<>();

    public static NurseryScheduleTempListVo of(NurseryScheduleTemp temp,List<NurseryScheduleTempRecord> tempRecords){
        NurseryScheduleTempListVo vo = new NurseryScheduleTempListVo();
        vo.setNurseryScheduleTemp(temp);
        vo.setTempRecords(tempRecords);
        return vo;
    }
}
